package com.itlong.cloud.property.resource;

import com.itlong.cloud.property.service.IPropertyPersonService;
import com.itlong.cloud.user.property.IPropertyPersonServiceClient;
import org.slf4j.Logger;import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      设备服务暴露接口实现类。
 * </desc>
 *
 * @createDate 2017/08/29
 */
@RestController
public class PropertyPersonServiceResource implements IPropertyPersonServiceClient {

    private static final Logger log = LoggerFactory.getLogger(PropertyPersonServiceResource.class);

    @Autowired
    IPropertyPersonService iPersonService;


    /**
     * <desc>
     *      DEMO示例。
     * <desc/>
     *
     * @param param id
     * @return hello
     * @author Wenchao.L
     * @createDate 2017/08/29
     */
    @Override
    @RequestMapping(path = "/userSayHello/{param}", method = {RequestMethod.GET})
    public String userSayHello(@PathVariable(value = "param") String param) {
        log.info("【测试~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~】");
        //PersonPO person = iPersonService.getPersonById(Integer.parseInt(param));
        return "Service 输出的 helloWorld!";
    }

}
